import request from '@/utils/request'

// 查询证书管理列表
export function listPerson_certificate(query) {
  return request({
    url: '/business/person_certificate/list',
    method: 'get',
    params: query
  })
}

// 查询证书管理详细
export function getPerson_certificate(certificateId) {
  return request({
    url: '/business/person_certificate/' + certificateId,
    method: 'get'
  })
}

// 新增证书管理
export function addPerson_certificate(data) {
  return request({
    url: '/business/person_certificate',
    method: 'post',
    data: data
  })
}

// 修改证书管理
export function updatePerson_certificate(data) {
  return request({
    url: '/business/person_certificate',
    method: 'put',
    data: data
  })
}

// 删除证书管理
export function delPerson_certificate(certificateId) {
  return request({
    url: '/business/person_certificate/' + certificateId,
    method: 'delete'
  })
}
